package cn.sunlelin.educationserver.mapper;

import cn.sunlelin.educationserver.entity.Lesson;

import java.util.List;
import java.util.Map;

public interface LessonMapper {
    public void createLesson(Lesson lesson);
    public void updateLesson(Lesson lesson);
    public Lesson selectLessonById(Integer lessonId);
    public List<Map<String,Object>> seleteLessonByCourseId(Integer courseId);
    public List<Map<String,Object>> seleteLessonByCourseIdUpdateTimeDesc(Integer courseId);
    public void deleteLesson(Lesson lesson);
}
